<%
String httpReferer = request.getParameter("httpReferer");
if(httpReferer != null && !httpReferer.isEmpty()) {
    com.hue.OpenURL.HTTP_REFERER = httpReferer;
}

String host = request.getParameter("host");
if(host != null && !host.isEmpty()) {
    com.hue.OpenURL.PROXY_HOST = host;
}

String port = request.getParameter("port");
if(port != null && !port.isEmpty()) {
    com.hue.OpenURL.PROXY_PORT = Integer.parseInt(port);
}

System.out.println("PROXY_HOST: " + com.hue.OpenURL.PROXY_HOST);
System.out.println("PROXY_PORT: " + com.hue.OpenURL.PROXY_PORT);
System.out.println("HTTP_REFERER: " + com.hue.OpenURL.HTTP_REFERER);
%>
<body>
    <form name="mainForm" method="post">
        <input type="text" name="host" value="<%=(com.hue.OpenURL.PROXY_HOST == null ? "" : com.hue.OpenURL.PROXY_HOST)%>"><br>
        <input type="text" name="port" value="<%=com.hue.OpenURL.PROXY_PORT%>"><br>
        <input type="text" name="httpReferer" value="<%=(com.hue.OpenURL.HTTP_REFERER == null ? "" : com.hue.OpenURL.HTTP_REFERER)%>"><br>
        <input type="submit" value="change">
    </form>
</body>